<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/20 0020
 * Time: 16:03
 */

namespace app\wap\validate;


use think\Validate;

class Heyue extends Validate
{
    protected $rule = [
        'data'  => '',
        'time'  => 'require|in:1,2,3',
        'cu_id' => 'require',
    ];
    protected $message = [
        'time.require'      =>  '请选择订阅的时间节点',
        'time.in'           =>  '请选择当周,次周或者当季',
        'cu_id.require'     =>  '请选择交易对',
    ];

    protected $scene = [
        'heyuecurrency'  =>['data'],
        'heyueset'       =>['cu_id','time'],
    ];
}